from django.urls import re_path,path
from . import views

urlpatterns = [
    # # 判断用户名是否重复注册:GET /usernames/itcast/count/
    # path('usernames/<'匹配用户名的路由转换器:变量'>/count/', views.UsernameCountView.as_view()),
    path('usernames/<username:username>/count/',views.UsernameCountView.as_view()),

    # 判断手机号是否重复::GET /mobiles/15777888899/count/
    path('mobiles/<mobile:mobile>/count/',views.MobileCountView.as_view()),

    # post /register/

    path('register/', views.RegisterView.as_view()),

    # 用户登录:post http://www.meiduo.site:8000/login/

    path('login/', views.LoginView.as_view()),

]